﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
<link rel="stylesheet" type="text/css" href="{{ asset('admins/css/style.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset('admins/css/skin_/login.css') }}" />
<script type="text/javascript" src="{{ asset('admins/js/jquery.js') }}"></script>
<script type="text/javascript" src="{{ asset('admins//js/jquery.select.js') }}"></script>
<title>华为商城管理系统_用户登录</title>
</head>

<body>
<div id="container">
    <div id="bd">
    	<div id="main">
        	<div class="login-box">
                <div id="logo"></div>
                <h1></h1>
                
                <form action="{{ url('admin/login') }}" method="post">
                
             <input type="hidden" name="_token" value="{{ csrf_token() }}">
                
                <div class="input username" id="username">
                    
                    <label for="userName">
                        @if(session('msg'))
                            <b style="color: red;font-size: 8px;">{{ session('msg') }}</b>
                        @else
                            用户名
                        @endif
                    </label>
                    <span></span>
                    <input type="text" id="userName" name="adminName" value="" />
                </div>
                <div class="input psw" id="psw">
                    <label for="password">密&nbsp;&nbsp;&nbsp;&nbsp;码</label>
                    <span></span>
                    <input type="password" id="password" name="adminPassword" />
                </div>

                <div class="input validate" id="validate">
                     

                    <label for="valiDate"> 
                    @if(session('msa'))
                        <b style="color: red;font-size: 10px;">{{ session('msa') }}</b>
                    @else
                        验证码
                    @endif</label>
                    <input type="text" id="valiDate" name="code" value="" />

                    
                    <div class="value">

                     <img src="{{ url('/captch/.time()') }}" onclick="this.src='{{ url('/captch') }}/'+Math.random()"/>
                      
                    </div>
                </div>

              <!--   <div class="styleArea">
                    <div class="styleWrap">
                        <select name="style">
                            <option value="默认风格">默认风格</option>
                            <option value="红色风格">红色风格</option>
                            <option value="绿色风格">绿色风格</option>
                        </select>
                    </div>
                </div> -->
                <div id="btn" class="loginButton">
                    <input type="submit" class="button" value="登录"  />
                </div>
            </div>
        </div>
        </form>
        <div id="ft">CopyRight&nbsp;2014&nbsp;&nbsp;版权所有&nbsp;&nbsp;huawei.com 仅供学习参考 &nbsp;&nbsp;</div>
    </div>
   
</div>
</body>
<script type="text/javascript">
	var height = $(window).height() > 445 ? $(window).height() : 445;
	$("#container").height(height);
	var bdheight = ($(window).height() - $('#bd').height()) / 2 - 20;
	$('#bd').css('padding-top', bdheight);
	$(window).resize(function(e) {
        var height = $(window).height() > 445 ? $(window).height() : 445;
		$("#container").height(height);
		var bdheight = ($(window).height() - $('#bd').height()) / 2 - 20;
		$('#bd').css('padding-top', bdheight);
    });
	$('select').select();
	
	/*$('.loginButton').click(function(e) {
        document.location.href = "{{ url('admin/login') }}";
    });*/
</script>
</html>
